package org.zeroes.Events;
import org.zeroes.common_prelude.*;
import java.util.List;
import java.util.ArrayList;
import java.util.Collections;
public class ZSEvent {
	
	public String name;
	public ZSPair<?,?> who;
	public List<ZSPair<?,?>> complements=new ArrayList<ZSPair<?,?>>();
	public int loopindex=0;
	public ZSEvent(String n){
		this.name=n;
		who=null;
	}
	
public ZSEvent(String n, ZSPair<?,?> w, int li){
	this.name=n;
	who=w;
	this.loopindex=li;
}


public vector2 castToVector2D(ZSPair<?,?> w){
	
	return (vector2)w.getFirst();
}
public Vertex3 castToVertex3(ZSPair<?,?> w){
	
	return (Vertex3)w.getFirst();
}
public float castToFloat(ZSPair<?,?> w){
	
	return (Float)w.getFirst();
}
public int castToInteger(ZSPair<?,?> w){
	
	return (Integer)w.getFirst();
}
// more to come ...
}
